package com.gemo.demo.util;

public class PageUtil {
	//设置默认页面显示8个数据
	public static final int PAGESIZE=8;
	//边界值判断，获取页数
	public static int getPage(int page,int maxPage) {
		if(page<1) {
			return 1;
		}else if(page>maxPage) {
			return maxPage;
		}else {
			return page;
		}
	}
}
